﻿@model IEnumerable<Vms.Web.Models.PROGRAM>

@{
    ViewBag.Title = "Programs";
}

<h2>Programs</h2>

<p>
    @Html.ActionLink("Create New", "Create", new { }, new { @class = "btn btn-primary" })
</p>
<table class="table table-bordered table-striped">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PlayLength)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StartYear)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StartMonth)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StartDay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EndYear)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EndMonth)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EndDay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MonPlay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TuePlay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.WedPlay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ThuPlay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FriPlay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SatPlay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SunPlay)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StartHour)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StartMinute)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EndHour)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EndMinute)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PlayLength)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StartYear)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StartMonth)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StartDay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EndYear)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EndMonth)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EndDay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MonPlay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TuePlay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.WedPlay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ThuPlay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FriPlay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SatPlay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SunPlay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StartHour)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StartMinute)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EndHour)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EndMinute)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
 @Html.ActionLink("Back to List", "Index")
